package com.jsu.information.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.model.information.pojo.AchievementTry;

import java.util.List;

@Mapper
public interface AchievementTryMapper extends BaseMapper<AchievementTry> {

    @Select("SELECT * FROM achievement_try WHERE state = 0")
    List<AchievementTry> getAchievementTryListWithState();


    @Select("SELECT * FROM achievement_try WHERE achievement_id = {achievement_id}")
    List<AchievementTry> getAchievementTryListByAchievementId(int achievement_id);
}
